<!--
  @Descripttion:：简历查看/预览
  @Author：yejianbo
  @Date：2022年05月22日 03:06:59
-->
<template>
  <section class="resume-review">
    <!-- 个人基本信息 -->
    <section class="block">
      <div class="head-icon">
        <img
          src="../../../../assets/images/touxiang.png"
          v-imgError
          alt="头像"
        />
      </div>
      <div class="user-info">
        <div class="row1">张同学<span>学生</span></div>
        <div class="row2">
          男<span class="line"></span>20岁<span class="line"></span>深圳<span
            class="line"
          ></span
          >21年毕业
          <br />
          <div class="row3">
            <span class="label">手机号码</span>
            <el-tooltip
              class="item"
              effect="dark"
              content="15988888888"
              placement="top-start"
            >
              <span class="label">15988888888</span>
            </el-tooltip>
          </div>
          <div class="row4">
            <span class="label">邮箱地址</span>
            <el-tooltip
              class="item"
              effect="dark"
              content="aaaaa@163.com"
              placement="top-start"
            >
              <span class="label">aaaaa@163.com</span>
            </el-tooltip>
          </div>
        </div>
      </div>
    </section>
    <!-- 求职意向 -->
    <section class="block pt30">
      <p class="title">求职意向</p>
      <div class="job-wish-item">
        <div class="row1">
          产品经理<span class="line"></span>20000-40000元/月<span
            class="line"
          ></span
          >广州
        </div>
        <div class="job-type">网络/信息安全</div>
      </div>
    </section>
    <!-- 工作/实习经历 -->
    <section class="block pt30">
      <p class="title">工作/实习经历</p>
      <div class="word-record-item">
        <div class="row1">2022年02月 - 至今</div>
        <div class="row2">中国化工集团有限公司</div>
        <div class="row3">产品经理 <span class="line"></span> 2000元/月</div>
        <div class="row4">
          <span class="label">职位类型</span
          ><span class="value">产品经理/项目经理</span>
          <span class="label">所属行业</span
          ><span class="value">网络/信息安全</span>
        </div>
        <div
          class="row5"
          v-if="jobContent"
          v-html="jobContent.replace(/\n/gm, '<br>')"
        ></div>
      </div>
      <div class="word-record-item">
        <div class="row1">2022年02月 - 至今</div>
        <div class="row2">中国化工集团有限公司</div>
        <div class="row3">产品经理 <span class="line"></span> 2000元/月</div>
        <div class="row4">
          <span class="label">职位类型</span
          ><span class="value">产品经理/项目经理</span>
          <span class="label">所属行业</span
          ><span class="value">网络/信息安全</span>
        </div>
        <div
          class="row5"
          v-if="jobContent"
          v-html="jobContent.replace(/\n/gm, '<br>')"
        ></div>
      </div>
    </section>
    <!-- 项目经历 -->
    <section class="block pt30">
      <p class="title">项目经历</p>
      <div class="word-record-item">
        <div class="row1">2022年02月 - 至今</div>
        <div class="row2">中国化工服务管理后台系统</div>
        <div
          class="row5"
          v-if="subjectDesc"
          v-html="subjectDesc.replace(/\n/gm, '<br>')"
        ></div>
      </div>
      <div class="word-record-item">
        <div class="row1">2022年02月 - 至今</div>
        <div class="row2">中国化工服务管理后台系统</div>
        <div
          class="row5"
          v-if="subjectDesc"
          v-html="subjectDesc.replace(/\n/gm, '<br>')"
        ></div>
      </div>
    </section>
    <!-- 教育经历 -->
    <section class="block pt30">
      <p class="title">教育经历</p>
      <div class="word-record-item">
        <div class="row2">深圳大学</div>
        <div class="row1">2000.06-2015.05</div>
        <div class="row1">
          硕士<span class="line"></span>网络信息安全技术<span
            class="line"
          ></span
          >有学位证书
        </div>
      </div>
      <div class="word-record-item">
        <div class="row2">深圳大学</div>
        <div class="row1">2000.06-2015.05</div>
        <div class="row1">
          硕士<span class="line"></span>网络信息安全技术<span
            class="line"
          ></span
          >有学位证书
        </div>
      </div>
    </section>
    <!-- 已修课程 -->
    <section class="block pt30">
      <p class="title">已修课程</p>
      <div class="word-record-item">
        <div class="row1">2000.06-2015.05</div>
        <div class="row2">国际金融分析课程学</div>
      </div>
      <div class="word-record-item">
        <div class="row1">2000.06-2015.05</div>
        <div class="row2">国际金融分析课程学</div>
      </div>
    </section>
    <!-- 语言能力 -->
    <section class="block pt30">
      <p class="title">语言能力</p>
      <div class="word-record-item">
        <div class="row1">2000.06-2015.05</div>
        <div class="row2">英语 <span>精通</span></div>
      </div>
    </section>
    <!-- 专业技能 -->
    <section class="block pt30">
      <p class="title">专业技能</p>
      <div class="word-record-item">
        <div class="row1">2000.06-2015.05</div>
        <div class="row2">JAVA<span>精通</span></div>
      </div>
    </section>
    <!-- 证书 -->
    <section class="block pt30">
      <p class="title">证书</p>
      <div class="word-record-item">
        <div class="row2">JAVA证书<span>2022年1月</span></div>
      </div>
    </section>
    <!-- 社会实践/活动经历 -->
    <section class="block pt30">
      <p class="title">社会实践/活动经历</p>
      <div class="word-record-item">
        <div class="row1">2022年02月 - 至今</div>
        <div class="row2">社区的社会实际和义工活动经历</div>
        <div class="row5" v-html="subjectDesc.replace(/\n/gm, '<br>')"></div>
      </div>
    </section>
  </section>
</template>
<script>
export default {
  // 组件名称
  name: "demo",
  // 组件参数 接收来自父组件的数据
  props: {},
  // 局部注册的组件
  components: {},
  // 组件状态值
  data() {
    return {
      jobContent: `1. 负责为吉禾日式的微信公众号撰写文章；
2. 帮助策划吉禾日式的微信公众号的福利活动；
3. 回复微信公众号的粉丝留言；
4.管理微信社群，与用户聊天，帮助用户解答疑问。`,
      subjectDesc:
        "但其实这些成绩并不是我们个人就能取得的，而是团队和公司赋予我们的。不过对于HR和公司来讲，这些数据非常能抓住眼球并且给我们加分。这都是写简历的时候我们能用到的小技巧。通过调整我们的目标和对工作的认知，加上上面我给出的一些简历写作技巧。我相信我们会更容易找到下一份好工作，这样子我们也就可以逐步把自己“不满意”的经历换成一些我们“更自信”的经历。",
    };
  },
  // 计算属性
  computed: {},
  // 侦听器
  watch: {},
  // 组件方法
  methods: {},
  /**
   * 组件实例创建完成，属性已绑定，但DOM还未生成，$ el属性还不存在
   */
  created() {},
  /**
   * el 被新创建的 vm.$ el 替换，并挂载到实例上去之后调用该钩子。
   * 如果 root 实例挂载了一个文档内元素，当 mounted 被调用时 vm.$ el 也在文档内。
   */
  mounted() {},
};
</script>
<!-- Add "scoped" attribute to limit CSS to this component only -->
<style lang="less" scoped>
.resume-review {
  position: relative;
  width: 100%;
  background: #f5f8fa;
  .block {
    position: relative;
    background: #fff;
    margin-bottom: 20px;
  }
  .pt30 {
    padding: 30px 40px;
  }
  .head-icon {
    position: relative;
    background: url("../../../../assets/images/blue_bg.png") no-repeat center
      center / cover;
    width: 100%;
    height: 180px;
    > img {
      display: block;
      width: 64px;
      height: 64px;
      position: absolute;
      left: 50%;
      bottom: 0;
      transform: translate3d(-50%, 50%, 0);
      border-radius: 50%;
      overflow: hidden;
      background: #69c0ff;
    }
  }
  .user-info {
    position: relative;
    padding: 50px 0 120px;
    text-align: center;
    .row1 {
      position: relative;
      line-height: 50px;
      font-weight: 600;
      color: #37383d;
      font-size: 36px;
      text-align: center;
      margin-bottom: 12px;
      span {
        display: inline-block;
        border-radius: 6px;
        border: 1px solid #2f8efe;
        font-size: 20px;
        font-weight: 400;
        color: #2f8efe;
        line-height: 36px;
        padding: 0 12px;
        margin-left: 15px;
        vertical-align: middle;
      }
    }
    .row2 {
      position: relative;
      display: inline-block;
      text-align: center;
      font-size: 20px;
      font-family: PingFangSC-Regular, PingFang SC;
      font-weight: 400;
      color: #9597a0;
      line-height: 28px;
      .line {
        position: relative;
        display: inline-block;
        width: 1px;
        height: 14px;
        background: #9597a0;
        margin: 0 18px;
      }
    }
    .row3 {
      position: absolute;
      display: inline-block;
      left: 0;
      top: 49px;
      width: 100%;
      text-align: left;
      font-size: 20px;
      font-family: PingFangSC-Regular, PingFang SC;
      font-weight: 400;
      color: #37383d;
      line-height: 28px;
      margin-top: 21px;
      .label {
        position: relative;
        display: inline-block;
        width: 60%;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
      }
      .label:first-child {
        width: 40%;
      }
    }
    .row4 {
      position: absolute;
      display: inline-block;
      left: 0;
      top: 92px;
      width: 100%;
      text-align: left;
      font-size: 20px;
      font-family: PingFangSC-Regular, PingFang SC;
      font-weight: 400;
      color: #37383d;
      line-height: 28px;
      margin-top: 21px;
      .label {
        position: relative;
        display: inline-block;
        width: 60%;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
      }
      .label:first-child {
        width: 40%;
      }
    }
  }
  .title {
    font-size: 28px;
    font-family: PingFangSC-Medium, PingFang SC;
    font-weight: 500;
    color: #37383d;
    line-height: 40px;
    margin: 0 0 30px;
    padding: 0;
  }
  .job-wish-item {
    .row1 {
      font-size: 24px;
      font-family: PingFangSC-Regular, PingFang SC;
      font-weight: 400;
      color: #37383d;
      line-height: 33px;
      margin-bottom: 20px;
      .line {
        position: relative;
        display: inline-block;
        width: 1px;
        height: 17px;
        background: #9597a0;
        margin: 0 25px;
      }
    }
    .job-type {
      font-size: 20px;
      font-family: PingFangSC-Regular, PingFang SC;
      font-weight: 400;
      color: #37383d;
      line-height: 28px;
    }
  }
  .word-record-item {
    padding-bottom: 27px;
    border-bottom: 1px solid #d4d6da;
    margin-bottom: 30px;
    &:last-child {
      border-bottom: 1px solid #fff;
    }
    .row1 {
      font-size: 20px;
      font-family: PingFangSC-Regular, PingFang SC;
      font-weight: 400;
      color: #9597a0;
      line-height: 28px;
      margin-bottom: 15px;
    }
    .row2 {
      font-size: 24px;
      font-family: PingFangSC-Medium, PingFang SC;
      font-weight: 500;
      color: #37383d;
      line-height: 33px;
      margin-bottom: 15px;
      span {
        font-size: 24px;
        font-family: PingFangSC-Medium, PingFang SC;
        font-weight: 500;
        color: #9597a0;
        line-height: 33px;
        margin-left: 218px;
      }
    }
    .row3 {
      font-size: 20px;
      font-family: PingFangSC-Regular, PingFang SC;
      font-weight: 400;
      color: #9597a0;
      line-height: 28px;
      margin-bottom: 15px;
      .line {
        position: relative;
        display: inline-block;
        width: 1px;
        height: 17px;
        background: #9597a0;
        margin: 0 25px;
      }
    }
    .row4 {
      margin-bottom: 20px;
      .label {
        font-size: 20px;
        font-family: PingFangSC-Regular, PingFang SC;
        font-weight: 400;
        color: #9597a0;
        line-height: 28px;
        margin-right: 17px;
      }
      .value {
        font-size: 20px;
        font-family: PingFangSC-Regular, PingFang SC;
        font-weight: 400;
        color: #030303;
        line-height: 28px;
        margin-right: 130px;
      }
    }
    .row5 {
      font-size: 20px;
      font-family: PingFangSC-Regular, PingFang SC;
      font-weight: 400;
      color: #3c3c3c;
      line-height: 37px;
    }
  }
}
</style>
